﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wallpaper.Models.Interfaces;

namespace Wallpaper.Models.Entities
{
    /// <summary>
    /// 管理员实体
    /// </summary>
    public class Admin  :BaseEntity,IHasTimestamps, ISoftDelete
    {


        /// <summary>
        /// 管理员账号（用于登录）
        /// </summary>
        public string Account { get; set; }

        /// <summary>
        /// 密码哈希值
        /// </summary>
        public string PasswordHash { get; set; }

        /// <summary>
        /// 头像图片URL
        /// </summary>
        public string AvatarUrl { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }

        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime? UpdatedAt { get; set; }

        /// <summary>
        /// 账号状态：true-启用，false-禁用
        /// </summary>
        public bool IsEnabled { get; set; }

        /// <summary>
        /// 超级管理员 :true-是,false-否
        /// </summary>
        public bool IsSuperAdmin { get; set; }

        /// <summary>
        /// 软删除标志：true-已删除，false-正常
        /// </summary>
        public bool IsDeleted { get; set; }

        // 添加角色关联
        public string RoleId { get; set; }

        public virtual Role Role { get; set; }
    }
}
